import LoginView from './components/Login.vue'
import IndexView from './components/Index.vue'
import NotFound from './components/404.vue'
import BookView from './components/Book.vue'
import UpdateView from './components/Update.vue'
import AuthorView from './components/Author.vue'
import MenuAdminView from './components/MenuAdmin.vue'
import pageView from './components/pageView.vue'


let routes=[
    {
        path:'/system/login',
        component:LoginView
    },
    {
        path:'/system/index',
        component:IndexView,
        redirect: { path: '/system/index/book' },
        children:[
            {path:'/system/index/book',component:BookView},
            {path:'/system/index/bookUpdate',component:UpdateView},
            {path:'/system/index/author',component:AuthorView},
            {path:'/system/index/menu',component:MenuAdminView},
            {path:'/system/index/page',component:pageView}
        ]
    },
    {
        path: '/system/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        hidden: true,
        redirect: { path: '/system/login' }
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/system/404' }
    }
]
export default routes;